package cn.qiyu5522.service;

import cn.qiyu5522.domain.entity.Menu;
import cn.qiyu5522.domain.entity.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 菜单权限表 服务类
 * </p>
 *
 * @author Tonkey
 * @since 2024-04-22
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Long id);

    List<String> selectPermsByMenuIds(List<Long> menuIds);

    List<Menu> selectMenusByUserId(Long id);

    List<Menu> selectMenusByMenuIds(List<Long> menuIds);

    ResponseResult getList(String status, String menuName);

    ResponseResult addMenu(Menu menu);

    ResponseResult getMenuById(Long id);

    ResponseResult updateMenu(Menu menu);

    ResponseResult deleteMenuById(Long menuId);

    ResponseResult getMenuTree();

    ResponseResult roleMenuTreeSelect(Long roleId);
}
